<template>
  <el-table-column label="市场价(元)" prop="originalPrice" min-width="150">
    <template #default="scope">
      {{ formatPayPrice(scope.row.originalPrice) }}
    </template>
  </el-table-column>
</template>

<script setup lang="ts">
const formatPayPrice = (val: number) => {
  return isNaN(val) ? val : val / 100 // 后端以分为单位保存
}
</script>
